<th
    {if $width } width="{$width|escape}"{/if}
    {if $title } title="{$title|escape}"{/if}

    {if $orderinfo.is_active }
        {if $orderinfo.dir == '+' } class="ordered_asc" {else} class="ordered_desc" {/if}
    {/if}>
    <div>{if $orderinfo }<a href="{$orderinfo.link|escape}">{$name}</a>{else}{$name}{/if}</div>
</th>
